//---------------------------------------------------------------------------
#ifndef DMServExH
#define DMServExH

//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "PHTable.h"
#include "StDMSvEx.h"

//---------------------------------------------------------------------------
class TDMServEx1 : public TDataModule
{
__published:  // IDE-managed Components
  PHTable*  TBServEx;
  void __fastcall TBServExAfterOpen( TObject* Sender );
  void __fastcall TBServExQuantidade4Validate( int Elemento, Variant& Conteudo, PHDataSource* DS );
  void __fastcall TBServExUnitario5Validate( int Elemento, Variant&  Conteudo, PHDataSource*  DS );
    void __fastcall TBServExServico3Validate(int Elemento,
          Variant &Conteudo, PHDataSource *DS);
    void __fastcall TBServExBeforeInsert(TObject *Sender);
    void __fastcall TBServExBeforePost(TObject *Sender);
 void __fastcall TBServExTipo7Validate(int Elemento, Variant &Conteudo,
          PHDataSource *DS);
private: // User declarations
    bool ProcessaValidate;

public: // User declarations
  __fastcall TDMServEx1( TComponent* Owner );
  bool __fastcall TemCampo( int CodEmp, AnsiString Campo, AnsiString Conteudo );
};

//---------------------------------------------------------------------------
extern PACKAGE TDMServEx1*  DMServEx1;

//---------------------------------------------------------------------------
#endif

